package spring.beanTest;

import org.aspectj.lang.annotation.Aspect;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Project: tobe-better-coder
 * Package: BenaTest
 *
 * @author : Mr.xu
 * @date : 2023/5/10 8:28
 */
@Service("user")
public class User {

    //    @Autowired
    Order order;

    public void test() {
        System.out.println("执行 user方法");
    }

    @Autowired
    public User(Order order) {
        this.order = order;
    }

    public User(Order order, Order order1) {
        this.order = order;
    }

    public Order getOrder() {
        return order;
    }

    public void setOrder(Order order) {
        this.order = order;
    }
}